<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
        <style>
            *{padding:0;margin:0;}
            .wrap{margin: 10px auto;}
            .wrap>ul>li{list-style:none;width:200px;height:200px;line-height:200px;text-align:center;float:left;}
            .wrap>ul>li:nth-child(odd){background:#eee;}
            .wrap>ul>li:nth-child(even){background:#ccc;}
        </style>
    </head>
    <body>
          <div class="wrap">
               <ul>
                   <li>1</li>
                   <li>2</li>
               </ul>
          </div>
          <script src="./slice.js"></script>
          <script>
                play($('.wrap'), {
                        direction: 'left', //滚动方向，默认左右滚动
                        NUM: 2,  //可见的轮播数量
                        SPEED: 1000, //滚动速度
                        DELAY: 2000, //滚动频率
                        ifMouseoverStop: true, //鼠标经过时是否暂停
                    });

          </script>
    </body>
</html>